﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Diablo3.Engine.Property
{
    /// <summary>
    /// 攻击速度
    /// </summary>
    public class AttackSpeed : ItemsProperty,IAffecteAttackSpeed
    {
        public AttackSpeed() { }

        public AttackSpeed(Double value)
        {
            Value = value;
        }

        /// <summary>
        /// 攻速值
        /// </summary>
        public Double Value { get; set; }

        public override string Des
        {
            get { return String.Format("攻速 {0}", Value.ToString("F2")); }
        }

        #region IAffecteAttackSpeed 成员

        double IAffecteAttackSpeed.Affecte(double source)
        {
            return source + Value;
        }

        #endregion
    }
}
